package org.demo.patten.chain_of_responsibility;

/**
 * @author zhuj
 * @date 2025/3/29
 * @apiNote
 */
public class Director extends Approver {
    @Override
    public void handleRequest(int leaveDays) {
        if (leaveDays <= 10) {
            System.out.println("总经理审批：" + leaveDays + "天");
        } else {
            System.out.println("请假天数太多，拒绝审批");
        }
    }
}
